package com.oneguy.model.service;

import com.oneguy.model.bean.*;
import com.oneguy.model.mapper.DailyDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ZuoShu on 16/12/12.
 */
@Service
public class DailyDataService {
    @Autowired
    private DailyDataMapper dailyDataMapper;

    public List<RegisterCount> queryRegisterCount() {
        return dailyDataMapper.queryRegisterCount();
    }

    public List<PayScore> queryPayScore() {
        return dailyDataMapper.queryPayValue();
    }

    public String queryOnlineCount() {
        return dailyDataMapper.queryOnlineCount();
    }

    public List<RevenueScore> queryRevenue() {
        return dailyDataMapper.queryRevenue();
    }

    public List<MaxOnline> queryMaxOnline(){
        return dailyDataMapper.queryMaxOnline();
    }

    public List<ActiveUser> queryActiveUser(){
        return dailyDataMapper.queryActiveUser();
    }

    public List<OnlineDetail> queryOnlineDetail(){
        return dailyDataMapper.queryOnlineDetail();
    }

    public List<ActiveUserDetail> queryActiveUserDetail(){
        return dailyDataMapper.queryActiveUserDetail();
    }

}
